
function myRequest(url, data, method = 'GET') {
  return new Promise((reslove, reject) => {
    wx.request({
      url,
      data,
      method,
      success: reslove,
      fail: reject
    })
  })
}


module.exports = {
myRequest
}